const express = require('express')

const app = express()

app.listen(3000, () => {
    console.log('服务已开启。。。')
})

app.get('/home', (req, res) => {

    console.log(req.method)
    console.log(req.headers)
    console.log(req.path)
    console.log(req.query)
    console.log(req.ip)
    console.log(req.get('host'))
    res.end('hello express')
})